package myConn;

import java.sql.Connection;
import java.sql.DriverManager;

public class MyConnection {

	public Connection con;
	public void connect()
	{
		try {
			
			Class.forName("com.mysql.jdbc.Driver");
			con = DriverManager.getConnection("jdbc:mysql://localhost:3306/er","root","root");
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
